﻿using System;
using System.Windows.Forms;
using DevExpress.LookAndFeel;
using LayerData;
using System.Reflection;

namespace System2012
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            /*string fileName = Application.StartupPath + "\\CrystalDecisions.CrystalReports.Engine.dll";
            Assembly.LoadFile(Application.StartupPath + "\\CrystalDecisions.ReportSource.dll");
            Assembly.LoadFile(Application.StartupPath + "\\CrystalDecisions.Shared.dll");
            Assembly.LoadFile(Application.StartupPath + "\\CrystalDecisions.Windows.Forms.dll");*/
           // Assembly.LoadFile(Application.StartupPath + "\\CrystalDecisions.CrystalReports.Engine.dll");
            //IPostgreSqlConnectionInfo connectionInfo = ObjectFactory.CreateConnectionInfo("190.41.110.219", 5432, "dba_sis", "postgres", "amipro_java*01");
            IPostgreSqlConnectionInfo connectionInfo = ObjectFactory.CreateConnectionInfo("localhost", 5432, "bd_infosystem", "postgres", "postgres");
           //IPostgreSqlConnectionInfo connectionInfo = ObjectFactory.CreateConnectionInfo("localhost", 5432, "dba_sis", "postgres", "amipro_java*01");
            new System2012.SystemUtils().InicializarVariables(connectionInfo);
            SystemUtils.CurrentConnection = connectionInfo;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            Application.Run(new MdiForm());
        }
    }
}